<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TopicComment extends Model
{
    //

    protected $table = 'topic_comment';

    protected $guarded = [''];

    protected $primaryKey = 'id';


    protected function getDateFormat()
    {
        return 'U';
    }
    public function user()
    {
        return $this->belongsTo('App\Models\User', 'uid', 'uid');
    }

    public function topic()
    {
        return $this->belongsTo('App\Models\Topic', 'topic_id', 'id');
    }
}
